﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace QH_MSS_WPF_Core.UserControls
{
    /// <summary>
    /// BackButtonUserControl.xaml 的交互逻辑
    /// </summary>
    public partial class BackButtonUserControl : UserControl
    {
        public BackButtonUserControl()
        {
            InitializeComponent();
            BackButtonGrid.DataContext = this;
        }


        public static readonly DependencyProperty StringProperty = DependencyProperty.Register("StationText", typeof(String), typeof(BackButtonUserControl));
        public string StationText
        {
            get { return (string)GetValue(StringProperty); }
            set { SetValue(StringProperty, value); }
        }


        public static readonly DependencyProperty StringProperty2 = DependencyProperty.Register("StatusText", typeof(String), typeof(BackButtonUserControl));
        public string StatusText
        {
            get { return (string)GetValue(StringProperty2); }
            set { SetValue(StringProperty2, value); }
        }


        public static readonly DependencyProperty IntProperty = DependencyProperty.Register("Status", typeof(int), typeof(BackButtonUserControl));
        public int Status
        {
            get { return (int)GetValue(IntProperty); }
            set { SetValue(IntProperty, value); }
        }

        public static readonly DependencyProperty CommandProperty =
            DependencyProperty.Register("Command", typeof(ICommand), typeof(BackButtonUserControl), new PropertyMetadata(null));

        public ICommand Command
        {
            get { return (ICommand)GetValue(CommandProperty); }
            set { SetValue(CommandProperty, value); }
        }

    }
}
